//package com.jacars.gateway.events;
//
//
//import com.jacars.gateway.service.RouteService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.cloud.gateway.route.RouteDefinition;
//import org.springframework.stereotype.Component;
//
//@Component
//@Slf4j
//public class BusReceiver {
//
//    @Autowired
//    private RouteService routeService;
//
//    public void handleMessage(RouteDefinition routeDefinition) {
//        log.info("Received Message:<{}>", routeDefinition);
//        // 待实现动态del路由
//        routeService.save(routeDefinition);
//    }
//}
